home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / BOOZ_MAC / BOOZ_2 / BOOZ.H < prev    next >
Text File  |  1992-07-19  |  1KB  |  57 lines

  1. /* booz.h */
  2. /* this file is public domain */
  3.  
  4. #define MAC  /* for THINK C 5.0 comapability */
  5.  
  6. /* T_UINT16 must be an unsigned data type of exactly 16 bits */
  7. #define T_UINT16     unsigned short
  8.  
  9. /* Define FIXFNAME to activate the fixfname() function that converts
  10. filename syntax to be acceptable to the host system */
  11. /* #define FIXFNAME */
  12.  
  13. /*
  14. OPEN(x)     open file x for read
  15. CREATE(x)   create file x for read/write
  16.  
  17. Files opened by OPEN() and CREATE() must be opened in
  18. binary mode (not involving any newline translation).
  19. */
  20.  
  21. #define NEED_B
  22.  
  23. /* Conventional stdio, using "b" suffix for binary open */
  24. #ifdef NEED_B
  25. #define  CREATE(x)    fopen(x, "wb")
  26. #define  OPEN(x)    fopen(x, "rb")
  27.  
  28. #else
  29. /* some systems (e.g. Ultrix) don't like a trailinb "b" */
  30. #define  CREATE(x)    fopen(x, "w")
  31. #define  OPEN(x)     fopen(x, "r")
  32. #endif
  33.  
  34. /* don't change the rest of this file */
  35. #define MEM_BLOCK_SIZE    8192
  36.  
  37. /* Functions defined by Booz */
  38.  
  39. int getfile ();
  40. int lzd ();
  41. int readdir ();
  42. int rd_zooh ();
  43. int rd_dir ();
  44. int addbfcrc();
  45. int prterror();
  46. int oozext ();
  47. int putstr ();
  48. char *itoa ();
  49. int fixfname ();
  50.  
  51. /* Standard functions */
  52.  
  53. char *malloc();
  54. char *strcpy();
  55. char *strcat();
  56. char *strncat();
  57.